﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="Default.aspx.cs" Inherits="_Default"  %>
<%@ MasterType virtualpath="~/MasterPage.master" %>

<%@ Register src="EventsUserControl.ascx" tagname="EventsUserControl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div>

        <asp:LoginView ID="LoginView1" runat="server">
            <LoggedInTemplate>
                You are logged in.<br />
            </LoggedInTemplate>
            <RoleGroups>
                <asp:RoleGroup Roles="Admin">
                    <ContentTemplate>
                        <asp:HyperLink NavigateUrl="~/admin/Default.aspx" runat="server">Admin Functions</asp:HyperLink>
                    </ContentTemplate>
                </asp:RoleGroup>
            </RoleGroups>
        </asp:LoginView>
        <hr />
        <uc1:EventsUserControl ID="EventsUserControl1" runat="server" />
        
    </div>
</asp:Content>